From: Georges Basile Stavracas Neto Date: Tue, 7 Jan 2020 19:43:35 +0000 (-0300) Subject: unlockDialog: Blur background X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~134 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5d88729fc1cefd6d9c1f2c4e30f80142c8dad13d;p=gnome-shell.git unlockDialog: Blur background Add a 200px blur with a 55% brightness to the unlock dialog background. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872 --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index d853a93b6..ff2787ac4 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -16,6 +16,9 @@ const IDLE_TIMEOUT = 2 * 60; const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver'; +const BLUR_BRIGHTNESS = 0.55; +const BLUR_RADIUS = 200; + const SUMMARY_ICON_SIZE = 48; var NotificationsBox = GObject.registerClass({ @@ -426,6 +429,11 @@ var UnlockDialog = GObject.registerClass({ this._bgManagers.push(bgManager); this._backgroundGroup.add_child(widget); + + widget.add_effect(new Shell.BlurEffect({ + brightness: BLUR_BRIGHTNESS, + blur_radius: BLUR_RADIUS, + })); } _updateBackgrounds() {